<?php
/**
 * Created by PhpStorm.
 * User: 秋刀鱼
 * Date: 2018/8/7
 * Time: 11:54
 */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

$this->title = '深度资金图谱后台管理';
?>
<?=Html::cssFile('@web/css/bootstrap.css')?>
<?=Html::cssFile('@web/css/font-awesome.css')?>
<?=Html::cssFile('@web/css/animate.css')?>
<?=Html::cssFile('@web/css/app3.css')?>
<?=Html::cssFile('@web/css/paging.css')?>

    <body class="nav-md" >
    <div class="container body">
        <div class="main_container">
            <?php include_once'../views/public/left1.php';?>
            <?php include_once'../views/public/header.php';?>
            <!--右侧内容-->
            <div class="right_col_">
                <div class="row col-md-12" style="background:#fff;width: 100%;height: 1500px;">
                    <div style="width: 95%;margin: 0 auto;">
                        <div>&nbsp;</div>
                        <div style="line-height: 20px;">当前位置：首页 > 专家 > <span style="color: #0073f4">待验收</span> </div>
                    </div>
                    <hr>
                    <div class="row col-md-12" style="width: 100%;background: #fff;">
                        <div style="width: 95%;height:60px;margin: 0 0 0 6.7%;;display: flex;justify-content: space-between;align-items: center ">
                            <div>
                                <form action="#" class="form-inline">
                                    <span style="font-size: 16px;float: left">项目</span>
                                    <div class="form-group" style="float: left">
                                        <label class="sr-only" style="float: left">请输入搜索关键字</label>
                                        <div class="select_box">
                                            <select name="">
                                                <option value="芝士">芝士</option>
                                                <option value="奶油">奶油</option>
                                            </select>
                                        </div>
                                    </div>
                                    <span style="font-size: 16px;float: left;margin-left: 20px">项目状态</span>
                                    <div class="select_box">
                                        <select name="">
                                            <option value="芝士">芝士</option>
                                            <option value="奶油">奶油</option>
                                        </select>
                                    </div>
                                </form>
                            </div>
                        </div>
                        <div style="margin-top: 4%">
                            <table style="width: 90%;float: right" id="test">
                                <tbody>
                                <tr style="height: 80px;">
                                    <td style="height: 50px; border-bottom: 1px solid;">
                                        <div>
                                            <img src="../img/se.png" alt="" style="float: left;margin-left: -60px;margin-top: -6px;">
                                            <div style="font-size: 2vw;color: black;font-weight: 500;height: 50px">验收</div>
                                        </div>
                                        <p style="margin: 0!important;font-size: 20px">专家基本信息</p>
                                    </td>
                                </tr>
                                <tr style="display: block;width: 100%;margin-top: 3%;">
                                    <td style="width: 100%;display: block;">
                                        <div style="float: left;width: 20%;">
                                            <p style="font-size: 0.8vw;">姓名</p>
                                            <input type="text" style="width:100%;" id="name">
                                        </div>
                                        <div style="float: left;width: 20%;margin-left: 4%">
                                            <p style="font-size: 0.8vw">所在单位</p>
                                            <input type="text" style="width: 100%;" id="company">
                                        </div>
                                        <div style="float: left;width: 20%;margin-left: 4%">
                                            <p style="font-size: 0.8vw">职务名称</p>
                                            <input type="text" style="width: 100%;" id="post">
                                        </div>
                                        <div style="clear: both"></div>
                                    </td>
                                </tr>
                                <tr style="display: block;width: 100%;margin-top: 3%;">
                                    <td style="width: 100%;display: block;">
                                        <div style="float: left;width: 20%;">
                                            <p style="font-size: 0.8vw;">联系电话</p>
                                            <input type="text" style="width:100%;" id="phone">
                                        </div>
                                        <div style="float: left;width: 20%;margin-left: 4%">
                                            <p style="font-size: 0.8vw">E-mail</p>
                                            <input type="text" style="width: 100%;" id="email">
                                        </div>
                                        <div style="clear: both"></div>
                                    </td>
                                </tr>
                                <tr style="display: block;width: 100%;margin-top: 1%;">
                                    <td style="width: 100%;display: block;">
                                        <p style="font-size: 1vw;">验收意见</p>
                                    </td>
                                </tr>
                                <tr style="display: block;width: 100%;margin-top: 1%;">
                                    <td style="width: 100%;display: block;">
                                        <div style="width: 100%;border: 1px solid #eee;height: 200px;">
                                            <div>
                                                <textarea placeholder="请输入文字" style="border: 0;width: 100%;height: 150px" id="opinion"></textarea>
                                                <p style="float: right">签字：<input type="text" style="height:20px;" id="sign"></p>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                </tbody>
                                </tbody>
                            </table>
                            <div style="clear: both;"> </div>
                            <!--下半部分-->
                            <div style="width: 90%;float: right;margin-top: 2%;">
                                <p style="border-bottom: 1px solid #eee;font-size: 1vw">科研项目验收专家评审</p>
                                <table class=" input tab" style="width: 100%;float: left;" id="table">
                                    <thead>
                                    <tr valign="middle">
                                        <th rowspan="2">评审内容</th>
                                        <th rowspan="2">权重</th>
                                        <th rowspan="2">评审要点</th>
                                        <th rowspan="2">分数</th>
                                        <th colspan="5" style="text-align: center">评定等级</th>
                                    </tr>
                                    <tr>
                                        <th>评定等级</th>
                                        <th>非常符合</th>
                                        <th>较符合</th>
                                        <th>一般符合</th>
                                        <th>不符合 (本栏记分在该分数下)</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr id="yingyong">
                                        <td>应用价值</td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                    </tr>
                                    <tr>
                                        <td>规范性</td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                    </tr>
                                    <tr>
                                        <td>完成度</td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                    </tr>
                                    <tr>
                                        <td>难易度</td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                    </tr>
                                    <tr>
                                        <td>总计</td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                        <td><input type="text"></td>
                                    </tr>
                                    <tr>
                                        <td>评审结论</td>
                                        <td colspan="15"><input type="text" style="width: 100%"></td>
                                    </tr>
                                    <tr>
                                        <td colspan="15">
                                            <p>备注：</p>
                                            <p>1.评审专家按百分之给予课题成果评估内容打分；</p>
                                            <p>2.评审专家将每项打的分值相加，最终为其项目验收鉴定的总分；</p>
                                            <p>3.总评为：60分及格；60-70分合格；70-80分良好；81-90分较好；91-100分优秀；</p>
                                            <p>4.总评差，整改后重新验收；</p>
                                            <p>5.被验收项目存在下列情况之一者，不能通过验收：</p>
                                            <p>(1）完成计划任务不到80%；（2）预定成果未能实现或成果已无科学或实用价值；（3）提供验收文件、资料、数据不真实；（4）擅自修改计划书考核目标、内容、技术路线；（5）超过计划书规定期限二个月以上未完成任务，事先未作说明的。</p>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div style="clear: both"></div>
                            <div style="height: 90px;margin-left: 10%;margin-top: 2%;">
                                <div>
                                    <button style="width: 100px;background-color: royalblue;border-radius: 50px;color: #fff;border: none;" id="save">保存</button>
                                    <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                    <button style="width: 100px;background-color: #dce8ff;border-radius: 50px;color: royalblue;border: 1px solid royalblue;">提交</button>
                                    <div>
                                        <span style="color:red;">*注:</span>
                                        <span style="color: #999;">离开页面前请先保存，确认无误后提交，提交后如需更改请联系管理员</span>
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

        </div>
    </div>
    <script src="../js/jquery.js"></script>
    <script src="../js/bootstrap.js"></script>
    <script src="../js/paging.js"></script>
    <script src="../js/app.js"></script>
    <script>

        $(()=>{

        });


        $(document).on('click','#save',function () {
            var name = $('#name').val();
            var company = $('#company').val();
            var post = $('#post').val();
            var phone = $('#phone').val();
            var email = $('#email').val();
            var table = [];
            var yingyong = {};
            var yingyong_data = $('#yingyong').find('td');
            for(var i = 0; i<yingyong_data.length;i++){
                // if(yingyong_data.eq(i).val() == undefined){
                //     continue;
                    table[i] = yingyong_data.eq(i).find('input').val()
                // }

            };
                console.log(table[1])
        });

        var setTotalCount = 301;
        $('#box').paging({
            initPageNo: 3, // 初始页码
            totalPages: 30, //总页数
            totalCount: '合计' + setTotalCount + '条数据', // 条目总数
            slideSpeed: 600, // 缓动速度。单位毫秒
            jump: true, //是否支持跳转
            callback: function(page) { // 回调函数
                console.log(page);
            }
        })
    </script>
    </body>
    </html>
<?php exit;?>